package ex102;

public class Cylinder {
    double radius;
    double height;

    double getBottomArea() {
        return Math.PI * radius * radius;
    }

    double getVolume() {
        return getBottomArea() * height;
    }
}
